package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.SettleAccountsEntity;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/** 结账
 * @author ruansicheng
 */
public interface SettleAccountsModel extends IModel<SettleAccountsEntity> {

    /**
     * 获取最近一次结账记录
     *
     * @return SettleAccountsEntity
     * @param corpid 查询参数
     * @author ruansicheng
     * @date 2020/4/13 16:07
     * @descption
     */
    SettleAccountsEntity getLastSettleAccounts(String corpid);
    /**
     * 清除所有结账数据
     *
     * @return SettleAccountsEntity
     * @param corpid 查询参数
     * @author ruansicheng
     * @date 2020/4/13 16:07
     * @descption
     */
    void cleanSettleAccounts(String corpid);
}
